/**
 * 
 */
package com.shisfish.library.Utils.Global;

import java.util.HashMap;
import java.util.Map;

/**
 * @author shisfish
 * @date 2015年11月6日 上午10:19:53 
 * @Description 
 */
public class GlobalVariable{
	public static final Map<String, Object> GLOBALMAP = new HashMap<String, Object>();
	public static final Map<String, Object> CHOMAP = new HashMap<String, Object>();
	
	public static final int SUBJECT_BIG = 0;
	
	public static final int ADMIN = 0;
	public static final int USER = 1;
	
	public static final String SELECT_ERROR = "查询失败！";
	public static final String SELECT_SUCCESS = "查询成功！";
	public static final String ADD_ERROR = "添加失败！";
	public static final String ADD_SUCCESS = "添加成功！";
	public static final String UPDATE_ERROR = "修改失败！";
	public static final String UPDATE_SUCCESS = "修改成功！";
	public static final String DELETE_ERROR = "删除失败！";
	public static final String DELETE_SUCCESS = "删除成功！";
	
	public static final String TO_RELOGIN = "请重新登陆！"; 
	
	public static final String CHANGEPASS_SUCCESS = "修改密码成功！";
	public static final String CHANGEPASS_ERROR = "修改密码失败！";
		
	public static final String CACHE_FILE = "/ehcache.xml"; /** 缓存文件  */
	
	/** 缓存name */
	public static final String ISLOGIN = "islogin"; /** 是否登录  */
	public static final String ADMIN_LOGIN = "admin_login"; /** 管理员  */
	public static final String USER_LOGIN = "user_login"; /** 用户  */
	public static final String SYS_MAILBOX = "sys_mailbox";	 /** 系统邮箱  */
	/** 返回数值 */
	public static final String STATUS_CODE = "statusCode";
	public static final int SUCCESS = 0;
	public static final int ERROR = 1;
	/** 未登录 */
	public static final int NOT_LOGGED_IN = 10001; /** 未登录 */
	public static final int LOGIN_WR = 10002; /** 登录失败  */
	public static final int PASS_WR = 10003; /** 密码错误  */
	public static final int CHANGE_PASS_WR = 10004; /** 修改密码失败  */
	
	/** 邮箱发送失败 */
	public static final int SENDEMAIL_WR = 20001; /** 邮箱发送失败  */
	public static final int OVER_DEADLINE = 20002; /** 超期  */
	public static final int EMAILVERIFY_WR = 20003; /** 邮箱验证错误  */
	
	public static final int INADEQUATE_PERMISSIONS = 30001; /** 权限不够 */
	
	public static final int SELECT_WR = 40001; /** 查找失败  */
	public static final int UPDATE_WR = 40002; /** 修改失败  */
	public static final int INSERT_WR = 40003; /** 新增失败  */
	public static final int DELETE_WR = 40004; /** 删除失败  */
	public static final int SELECT_EMPTY = 40005; /** 查找为空  */
	public static final int SELECT_SAME = 40006; /** 查找数据相同  */
	
	/** 图书超期或可借/预约图书为0（不可借/预约书） */
	public static final int OVERDUE_QUOTA = 50001; 
	
	/** 书已还 */
	public static final int RETURNED = 50002;
	
	//public static final String URL = "http://127.0.0.1:8080/";
	public static final String URL = "http://115.29.37.191:8080/";	
}
